package org.example.authservice.clients;

import org.example.authservice.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 顾
 */
@FeignClient("auth-service")
public interface AuthClient {
    @GetMapping("/user/{id}")
    User findById(@PathVariable("id") Long id);
}